//
//  ViewController.m
//  HUDREXT
//
//  Created by 红嘴欧 on 2018/6/28.
//  Copyright © 2018年 person.qing. All rights reserved.
//

#import "ViewController.h"
#import "MBProgressHUD.h"
#import "PViewController.h"
#import "MBProgressHUD+Ext.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}

- (IBAction)present:(id)sender {
    [self presentViewController:[PViewController new] animated:YES completion:nil];
}
- (IBAction)showSuccess:(id)sender {
    [MBProgressHUD showSuccess:@"登陆成功"];
}

- (IBAction)showError:(id)sender {
    [MBProgressHUD showError:@"登陆失败"];
}

- (IBAction)showProgress:(id)sender {
}

- (IBAction)showOther:(id)sender {
    [MBProgressHUD show];
}

- (IBAction)onlyShowText:(id)sender {
    
    [MBProgressHUD showTip:@"天气好好哦！"];
//    MBProgressHUD *HUD = [MBProgressHUD showHUDAddedTo:self.view animated:YES];
    
//    HUD.mode = MBProgressHUDModeText;
//    HUD.label.text = @"加载中...";
//    HUD.progress = 0.3;
    
//    HUD.backgroundView.style = MBProgressHUDBackgroundStyleSolidColor;
//    HUD.backgroundView.style = MBProgressHUDBackgroundStyleBlur;
//    HUD.bezelView.backgroundColor = [UIColor blackColor];
//    HUD.label.textColor = [UIColor whiteColor];

//    HUD.detailsLabel.text = @"3333";
//    [HUD.button setTitle:@"1111" forState:UIControlStateNormal];
//    [HUD hideAnimated:YES afterDelay:5.0];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
